]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
popupMenu: Display the proper animations for popup menus
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 10 Dec 2012 08:47:32 +0000 (03:47 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 10 Dec 2012 19:38:07 +0000 (14:38 -0500)
BoxPointer's API changed to take a BoxPointer.PopupAnimation
enumeration value, but the code was accidentally replaced with
older code when porting the PopupMenuManager code to GrabHelper.

https://bugzilla.gnome.org/show_bug.cgi?id=689954

js/ui/popupMenu.js

index 85acb70b2ddb9f46eeda8fca652abdfc4e9b8ff5..202ae3d35fdaa6bae6167d2ab1e7f4057078e963 100644 (file)
@@ -2133,11 +2133,12 @@ const PopupMenuManager = new Lang.Class({
     },
 
     _changeMenu: function(newMenu) {
-        if (this.activeMenu) {
-            this._closeMenu(this.activeMenu);
-            newMenu.open(false);
+        let oldMenu = this.activeMenu;
+        if (oldMenu) {
+            oldMenu.close(BoxPointer.PopupAnimation.FADE);
+            newMenu.open(BoxPointer.PopupAnimation.FADE);
         } else {
-            newMenu.open(true);
+            newMenu.open(BoxPointer.PopupAnimation.FULL);
         }
     },